﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Lari.Configuration;

namespace Lari.Services.ViewModel
{
    public class DepartmentModel
    {
        public virtual int Id
        {
            get;
            set;
        }
        [StringLength(50 ,ErrorMessage = MessageCode.Generic.LengthExceeded)]
        [Required(ErrorMessage = MessageCode.Generic.ReguiredFldMsg)]
        public virtual string Name
        {
            get;
            set;
        }

        public int DesignationCount {get; set; }
    }
    public class DepartmentListModel
    {
        public List<DepartmentModel> List { get; set; }

        public DepartmentModel Edit { get; set; }

        public DepartmentModel Insert { get; set; }
    }
}
